import 'msg.dart';
import 'user.dart';

class ImListModel {
  String id;
  Map<String, dynamic> fromJson;
  Map<String, dynamic> msgJson;
  ImUserModel get fromUser {
    return ImUserModel.fromJson(fromJson);
  }

  ImMsgType get msgType {
    return msg.type;
  }

  ImMsgModel get msg {
    return ImMsgModel.fromJson(msgJson);
  }

  ImListModel({
    required this.id,
    required this.fromJson,
    required this.msgJson,
  });
}
